@extends('admin.base')
    @section('content')
	<style>
		li.choose {
			list-style:none;
			height: 20px;
			width: 100px;
			padding: 0 6px;
			border: 1px solid #ccc;
			border-bottom: 0;
			background-color: #fff;
		}
		.area_pop .list li {
			float: left;
			padding-left: 3px;
			line-height: 22px;
			width: 85px;
			overflow: hidden;
			height: 22px;
		}
		
	</style>
        <!-- Content Header (Page header) -->
        <section class="content-header">
		<script type="text/javascript" src="{{asset('home/jquery/jquery-3.1.0.min.js')}}"></script>
          <h1>
            <i class="fa fa-calendar"></i>
			新书上架信息管理
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="#">新书上架信息管理</a></li>
          </ol>
        </section>
        <!-- Main content -->

		<section class="content">
          <div class="row">
            <!-- right column -->
            <div class="col-md-12">
              <!-- Horizontal Form -->
              <div class="box box-primary">
                <div class="box-header with-border">
                </div><!-- /.box-header -->
                <!-- form start -->
                <form action="{{url('admin/newbook')}}" method="post" class="form-horizontal" enctype="multipart/form-data">
                  <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
				  <input type="hidden" name="_method" value="POST">
                  <div class="box-body">
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍名：</label>
                      <div class="col-sm-4">
                        <input type="text" name="name" class="form-control">
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍作者：</label>
                      <div class="col-sm-4">
                        <input type="text" name="auth" class="form-control">
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍新价格：</label>
                      <div class="col-sm-4">
                        <input type="text" name="newprice" class="form-control">
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍旧价格：</label>
                      <div class="col-sm-4">
                        <input type="text" name="oldprice" class="form-control">
                      </div>
                    </div>
					<div class="form-group">
						<label for="inputEmail3" class="col-sm-2 control-label">父类别名：</label>
						<div class="col-sm-4">
							<select name="pid">
								<option value="0">根类别</option>
								@foreach($list as $v)
									<option value="{{$v->id}}">{{$v->name}}</option>
								@endforeach
							</select>
						</div>
					</div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍展示版块：</label>
                      <div class="col-sm-4">
                        <input type="text" name="type" class="form-control">
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">图片上传：</label>
                      <div class="col-sm-4">
                        <input type="file" name="myfile">
                      </div>
                  </div><!-- /.box-body -->
                  <div class="box-footer">
				    <div class="col-sm-offset-2 col-sm-1">
						<button type="submit" class="btn btn-primary">添加</button>
                    </div>
					<div class="col-sm-1">
						<button type="submit" class="btn btn-primary">重置</button>
					</div>
                  </div><!-- /.box-footer -->
                </form>
				<div class="row"><div class="col-sm-12">&nbsp;</div></div>
              </div><!-- /.box -->
            </div><!--/.col (right) -->
          </div>   <!-- /.row -->
        </section><!-- /.content -->
		
    @endsection